#include <iostream>
#include <string>
#include <vector>
#include <memory>
#include <opencv2/opencv.hpp>
#include <seeta/FaceDetector.h>
#include <seeta/FaceLandmarker.h>
#include <seeta/FaceRecognizer.h>
#include <seeta/FaceTracker.h>
#include <seeta/Common/Struct.h>
#include "step.h"
#include "handler.h"
#include "app.h"
#include "to.h"

using namespace std;
using namespace cv;
using namespace YQ;
using namespace seeta;

int
main (int argc, char **argv)
{
	shared_ptr<const ImageData> img  = make_shared<ImageData> (toImageData (argv[1]));
	// shared_ptr<const ImageData> img_2 = make_shared<ImageData> (toImageData (argv[2]));
	
	shared_ptr<FaceExtractor> extractor = make_shared<FaceExtractor> (img);
	shared_ptr<ExtractResult> face =  extractor->extractBiggestFaceInfo();
	string check_msg;
	if (faceQualityCheck (img, face, check_msg)) {
		cout << "质量检测通过" << endl;
	} else {
		cout << check_msg << endl;
	}
	return 0;
}